package com.ybl.stepview_yw;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.ybl.library.ProInvestCycleStepView;

import java.util.ArrayList;
import java.util.List;

/**
 * Desc:
 * Creator ling
 * Date:   2017/7/11 0011 14:01
 */

public class HorizontalStepDemo extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_horizontal_demo);
        showSetpView0();
    }

    private void showSetpView0() {
        ProInvestCycleStepView setpview = (ProInvestCycleStepView) findViewById(R.id.step_view0);
        List<String> stepsBeanList = new ArrayList<>();
        stepsBeanList.add("2016/11/04");
        stepsBeanList.add("2016/11/04");

        List<String> stepsBeanList2 = new ArrayList<>();
        stepsBeanList2.add("截止认购");
        stepsBeanList2.add("截止认购");

        List<String> stepsBeanList3 = new ArrayList<>();
        stepsBeanList3.add("10000元");
        stepsBeanList3.add("10000元");

        setpview.setStepColors(null)
                .setStepViewTopTexts(stepsBeanList)
                .setStepViewBottomTexts(stepsBeanList2);
         /*       .setStepViewBottom2Texts(stepsBeanList3);*/
    }

}
